package com.snowflake.ecatalog.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.snowflake.ecatalog.entity.Template;

/**
 *	模板
 */
public interface TemplateDao extends PagingAndSortingRepository<Template, Long>, JpaSpecificationExecutor<Template> {
	
	//Page<Template> findByUserId(Long id, Pageable pageRequest);

	//@Modifying
	//@Query("delete from Task task where task.user.id=?1")
	//void deleteByUserId(Long id);
}
